<html>
    <head>
        <meta name="layout" content="main-widger" />
        <title>WebAlbum : Edit Person</title>
    </head>
    <body>
        <div class="body">
            <h1>Edit Person</h1>
            <g:render template="/shared/messages" />
            <g:hasErrors bean="${person}">
                <div class="errors">
                    <g:renderErrors bean="${person}" as="list" />
                </div>
            </g:hasErrors>
            <g:form method="post" >
                <input type="hidden" name="id" value="${person?.id}" />
                <label for="name">Name:</label>
                <input type="text" size="40" maxlength="40" class="disabled" disabled="disabled" id="name" name="name" value="${fieldValue(bean: person, field: 'name')}"/>
                <label for="motto">Motto:</label>
                <input type="text" size="40" maxlength="80" id="motto" name="motto" value="${fieldValue(bean: person, field: 'motto')}"/>
                <g:actionSubmit class="save" value="Update" />
            </g:form>
    </body>
</html>
